package com.example.ssmxuankeback.service;

import com.example.ssmxuankeback.common.RestBean;
import com.example.ssmxuankeback.dto.CourseDTO;
import com.example.ssmxuankeback.dto.CoursePageQueryDTO;
import com.example.ssmxuankeback.vo.CourseVO;
import com.example.ssmxuankeback.vo.PageVO;

import java.util.List;

public interface CourseService {
    RestBean<CourseVO> addCourse(CourseDTO dto);
    RestBean<CourseVO> getCourseByCourseId(Long id);
    RestBean<CourseVO> updateCourse(CourseDTO dto);
    RestBean<CourseVO> deleteCourseById(Long id);
    RestBean<List<CourseVO>> getCourseByTeacherId(Long id);
    RestBean<PageVO<CourseVO>> listByPage(CoursePageQueryDTO queryDTO);
}
